package com.bailian.spring.ioc.listener_01.listener;

import com.bailian.spring.ioc.listener_01.event.RegisterSuccessEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author gaoxu
 * date: Created on 2021/11/2 上午10:50
 */
@Component
public class MessageSenderListener {
    @EventListener
    public void onRegisterSuccess(RegisterSuccessEvent event) {
        System.out.println("监听到用户注册成功，发送站内信。。。");
    }
}
